cauchy and legendre differential equation